package com.emagic.manage.injections.modules;

import android.content.Context;

import com.emagic.manage.LifeApplication;
import com.xitaiinfo.library.injections.ForApplication;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

/**
 * TODO 描述该文件做什么
 *
 * @author baoy
 * @version 1.0
 *          Create by 2017/7/31 下午9:52
 */
@Module
public class AppModule {

    @Provides
    @Singleton
    @ForApplication
    Context provideContext(LifeApplication application) {
        return application;
    }

    @Provides
    @Singleton
    Context provideContext1(LifeApplication application) {
        return application;
    }
}